
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
<h1>${username},欢迎回来！</h1>
<table border align="center" width="20%">
    <caption>用户列表</caption>
    <tr><th>id</th><th>用户名</th><th>密码</th><th>用户操作</th></tr>
<c:forEach items="${userList}" var="user">

    <tr><td>${user.id}</td>
    <td>${user.username}</td>
    <td>${user.password}</td>
    <td>
        <a href="/update.jsp?id=${user.id}">修改用户</a>
        <a href="/delete.user?id=${user.id}">删除用户</a>
    </td>
    </tr>
</c:forEach>
</table>
</body>
</html>
